package com.filepublic.demo.server.mapper;

import com.filepublic.demo.pojo.entity.PenPalEntity;
import com.filepublic.demo.pojo.vo.PenPalVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PenPalBaseMapper {
    /**
     * 查询笔友信息
     * @param userId
     * @return
     */
    List<PenPalVo> selectPenPal(@Param("userId") String userId);

    /**
     * 插入笔友数据
     * @param penPalEntity
     */
    void insertPenPal(PenPalEntity penPalEntity);
}
